/**
 * 初步实现服务器功能
 */

const http = require('http');

//let server = http.createServer();

let server = http.createServer(
    (req, res) => {
        res.end('hello');
    }
);

// server.on('request', (req, res) => {
//     res.end('hello');
// });

server.listen(3000, '192.168.0.168', () => {
    console.log('running ........')
});